package com.qdu.bussiness.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qdu.common.annotation.Excel;
import com.qdu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 出库信息对象 bus_delivery
 * 
 * @author qdu
 * @date 2022-03-06
 */
public class BusDelivery extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long deliveryId;

    /** 库存ID */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long inventoryId;

    /** 库房 */
    @Excel(name = "库房")
    private String storageRoom;

    /** 库区 */
    @Excel(name = "库区")
    private String storageArea;

    /** 库位 */
    @Excel(name = "库位")
    private String storagePosition;

    /** 出库类型 */
    @Excel(name = "出库类型")
    private String deliveryType;

    /** 出库数量 */
    @Excel(name = "出库数量")
    private Long deliveryNum;

    /** 出库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "出库时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date deliveryTime;

    /** 物料名称 */
    private String itemName;

    /** 物料编号 */
    private String itemNo;

    public void setDeliveryId(Long deliveryId) 
    {
        this.deliveryId = deliveryId;
    }

    public Long getDeliveryId() 
    {
        return deliveryId;
    }
    public void setInventoryId(Long inventoryId) 
    {
        this.inventoryId = inventoryId;
    }

    public Long getInventoryId() 
    {
        return inventoryId;
    }
    public void setStorageRoom(String storageRoom) 
    {
        this.storageRoom = storageRoom;
    }

    public String getStorageRoom() 
    {
        return storageRoom;
    }
    public void setStorageArea(String storageArea) 
    {
        this.storageArea = storageArea;
    }

    public String getStorageArea() 
    {
        return storageArea;
    }
    public void setStoragePosition(String storagePosition) 
    {
        this.storagePosition = storagePosition;
    }

    public String getStoragePosition() 
    {
        return storagePosition;
    }
    public void setDeliveryType(String deliveryType) 
    {
        this.deliveryType = deliveryType;
    }

    public String getDeliveryType() 
    {
        return deliveryType;
    }
    public void setDeliveryNum(Long deliveryNum) 
    {
        this.deliveryNum = deliveryNum;
    }

    public Long getDeliveryNum() 
    {
        return deliveryNum;
    }
    public void setDeliveryTime(Date deliveryTime) 
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() 
    {
        return deliveryTime;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemNo() {
        return itemNo;
    }

    public void setItemNo(String itemNo) {
        this.itemNo = itemNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("deliveryId", getDeliveryId())
            .append("inventoryId", getInventoryId())
            .append("storageRoom", getStorageRoom())
            .append("storageArea", getStorageArea())
            .append("storagePosition", getStoragePosition())
            .append("deliveryType", getDeliveryType())
            .append("deliveryNum", getDeliveryNum())
            .append("deliveryTime", getDeliveryTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
